package com.BraveY.Demo10;

import java.util.TreeSet;

public class Demo03 {
    public static void main(String[] args) {
        TreeSet<StudentTest> ts = new TreeSet<>();
        StudentTest stu1 = new StudentTest("张三",78,45,66);
        StudentTest stu2 = new StudentTest("李四",68,95,96);
        StudentTest stu3 = new StudentTest("王五",78,65,76);
        StudentTest stu4 = new StudentTest("赵六",78,45,56);
        ts.add(stu1);
        ts.add(stu2);
        ts.add(stu3);
        ts.add(stu4);
        for(StudentTest stu:ts){
            System.out.println(stu);
        }

    }
}
